package com.iphanta.community.remote.feign;

import com.iphanta.community.remote.common.RemoteResult;
import com.iphanta.community.remote.traffic.VerifyTokenRequest;
import com.iphanta.community.remote.traffic.VerifyTokenResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author 墨声 E-mail: zehong.hongframe.huang@gmail.com
 * create time: 3/18/22 11:50 AM
 */
//@Component
@FeignClient(value = "sdk-server", url = "${verifyToken.server}")
public interface VerifyTokenFeign {

    @PostMapping(value = "verifyToken", produces = "application/json; charset=UTF-8", consumes = "application/json; charset=UTF-8")
    RemoteResult<VerifyTokenResponse> verifyToken(@RequestBody VerifyTokenRequest request);

}
